package com.zhongli.devplatform.dto.student;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/23 13:06
 */
@Data
public class StudentDTO {

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    private Integer userId;

    /**
     * 班级id
     */
    @NotNull(message = "班级id不能为空")
    @ApiModelProperty(value = "班级id", required = true)
    private String clazzId;


    /**
     * 姓名
     */
    @NotNull(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", required = true)
    private String realName;


    /**
     * 性别
     */
    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别", required = true)
    private Integer sex;

}
